﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPlus.Master" AutoEventWireup="true" CodeBehind="wbfrm_Pedidos_Proveedores.aspx.cs" Inherits="FrontEndPlus.Módulos.Inventarios.wbfrm_Pedidos_Proveedores" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <style type="text/css">
        .auto-style9
        {
            width: 286px;
        }
        .auto-style25
    {
        height: 55px;
    }
        .auto-style26
        {
            height: 245px;
        }
        .auto-style27
        {
            width: 286px;
            height: 47px;
        }
        .auto-style28
        {
            height: 47px;
        }
        .auto-style30
        {
            height: 343px;
        }
        .auto-style31
        {
            height: 223px;
        }
        .auto-style32
        {
            height: 33px;
            margin-left: 40px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
    </p>
    </asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    
<script src="Scripts/jquery.min.js" type="text/javascript"></script>
    <script src="Scripts/jquery-ui.min.js" type="text/javascript"></script>
    <link href="Scripts/jquery-ui.css" rel="Stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () {
            $("[id$=txt_fecha]").datepicker({
                
            });
        });
    </script>
</head>
<body>
    <div style="height: 975px">
        <table style="width: 122%; height: 956px;">
            <tr>
                <td colspan="2" class="auto-style26">
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" HeaderText="Se han producido los siguientes errores:" />
                        <br />
                <asp:Panel ID="Panel1" runat="server" GroupingText="Informacion de Factura" Width="765px" Height="200px">
                    <br />
                    <table style="width:100%;">
                        <tr>
                            <td class="auto-style9">
                                <asp:Label ID="Label2" runat="server" Text="Factura:"></asp:Label>
                                &nbsp;<asp:TextBox ID="txt_factura" runat="server" ReadOnly="True" BackColor="#CCCCCC" Height="22px" Width="128px"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="Label1" runat="server" Text="Nota:"></asp:Label>
                                &nbsp;<asp:TextBox ID="txt_descripcion" runat="server" Height="42px" Width="307px" MaxLength="50"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_descripcion" ErrorMessage="Digite una descripcion del pedido" ForeColor="Red" SetFocusOnError="True" Enabled="False">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="auto-style27">
                                <asp:Label ID="Label18" runat="server" Text="Fecha:"></asp:Label>
                                &nbsp;&nbsp;
                                <asp:TextBox ID="txt_fecha" runat="server" Height="22px" Width="128px" MaxLength="10" AutoPostBack="True" OnTextChanged="txt_fecha_TextChanged"></asp:TextBox>
                               
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txt_fecha" ErrorMessage="Seleccione una fecha" ForeColor="Red" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                               
                                <asp:CompareValidator ID="CompareValidator4" runat="server" ControlToValidate="txt_fecha" ErrorMessage="Digite en formato de fecha" ForeColor="Red" Operator="DataTypeCheck" SetFocusOnError="True" Type="Date">*</asp:CompareValidator>
                               
                            </td>
                            <td class="auto-style28">
                                <asp:Label ID="Label4" runat="server" Text="Pago:"></asp:Label>
                                &nbsp;<asp:DropDownList ID="ddl_tipo_pago" runat="server" Height="22px" Width="120px">
                                    <asp:ListItem></asp:ListItem>
                                    <asp:ListItem>Contado</asp:ListItem>
                                    <asp:ListItem>Credito</asp:ListItem>
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="ddl_tipo_pago" ErrorMessage="Seleccione el tipo de pago" ForeColor="Red" SetFocusOnError="True" Enabled="False">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="auto-style25">
                                <asp:Label ID="Label5" runat="server" Text="Proveedor:"></asp:Label>
                                &nbsp;&nbsp;&nbsp;
                                <asp:TextBox ID="txt_idProveedor" runat="server" ReadOnly="True" Height="22px" Width="50px" BackColor="#CCCCCC"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txt_idProveedor" ErrorMessage="Seleccione un proveedor" ForeColor="Red" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                                &nbsp;<asp:ImageButton ID="ib_buscar_proveedor" runat="server" ImageUrl="~/Módulos/Inventarios/Imagenes/icono_lupa.gif" OnClick="ib_buscar_proveedor_Click" CausesValidation="False" Height="26px" Width="28px" />
&nbsp;
                                <asp:TextBox ID="txt_nombre_proveedor" runat="server" ReadOnly="True" BackColor="#CCCCCC" Height="22px" Width="182px"></asp:TextBox>
                                &nbsp;&nbsp;&nbsp;
                                <asp:Label ID="Label6" runat="server" Text="Plazo:"></asp:Label>
                                <asp:TextBox ID="txt_plazo" runat="server" Height="22px" Width="50px" ReadOnly="True" BackColor="#CCCCCC"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                    <br />
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td class="auto-style30">
                    <asp:Label ID="lbl_mensaje" runat="server" BorderColor="Black" ForeColor="Red"></asp:Label>
                                            



                    <asp:Label ID="lbl_mensaje1" runat="server" ForeColor="Green"></asp:Label>
                                            



                    <asp:Panel ID="Panel2" runat="server" Enabled="False" GroupingText="Informacion Articulo" Height="205px" style="margin-bottom: 0px" Width="615px">
                        <table style="width:100%;">
                            <tr>
                                <td class="auto-style14" colspan="2">
                                    <asp:Label ID="Label7" runat="server" Text="Articulo:"></asp:Label>
                                    &nbsp;<asp:TextBox ID="txt_id_articulo" runat="server" BackColor="#CCCCCC" Height="22px" ReadOnly="True" Width="50px"></asp:TextBox>
&nbsp;<asp:TextBox ID="txt_cod_articulo" runat="server" BackColor="#CCCCCC" ReadOnly="True" Height="22px" Width="50px"></asp:TextBox>
                                </td>
                                <td class="auto-style14" colspan="2" style="margin-left: 40px">
                                    <asp:ImageButton ID="ib_buscar_producto" runat="server" CausesValidation="False" Height="26px" ImageUrl="~/Módulos/Inventarios/Imagenes/icono_lupa.gif" OnClick="ib_buscar_producto_Click" />
                                    <asp:TextBox ID="txt_nombre_articulo" runat="server" BackColor="#CCCCCC" Height="22px" ReadOnly="True" Width="182px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="auto-style24">
                                    <asp:Label ID="Label8" runat="server" Text="Cantidad:"></asp:Label>
                                </td>
                                <td class="auto-style23">
                                    <asp:TextBox ID="txt_cantidad" runat="server" Height="22px" MaxLength="3" Width="50px" Enabled="False"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txt_cantidad" ErrorMessage="Digite la cantidad requerida" ForeColor="Red" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="txt_cantidad" ErrorMessage="Digite solo numeros" ForeColor="Red" Operator="DataTypeCheck" SetFocusOnError="True" Type="Integer">*</asp:CompareValidator>
                                    <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txt_cantidad" ErrorMessage="Digite numeros en intervalo de 1-100" ForeColor="Red" MaximumValue="100" MinimumValue="1" SetFocusOnError="True" Type="Integer">*</asp:RangeValidator>
                                    <asp:RangeValidator ID="RangeValidator4" runat="server" ControlToValidate="txt_cantidad" ErrorMessage="Cantidad minima por pedido es de 20 y maximo 500" ForeColor="Red" MaximumValue="500" MinimumValue="20" SetFocusOnError="True" Type="Integer">*</asp:RangeValidator>
                                </td>
                                <td>
                                    <asp:Label ID="Label9" runat="server" Text="Utilidad(%):"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txt_utilidad" runat="server" BackColor="#CCCCCC" ReadOnly="True" OnTextChanged="txt_utilidad_TextChanged" Height="22px" Width="71px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="auto-style24">
                                    <asp:Label ID="Label10" runat="server" Text="Descuento:"></asp:Label>
                                </td>
                                <td class="auto-style23">
                                    <asp:TextBox ID="txt_descuento" runat="server" Height="22px" MaxLength="2" Width="50px" Enabled="False"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txt_descuento" ErrorMessage="Digite un valor de 0 a 100" ForeColor="Red" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                                    <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="txt_descuento" ErrorMessage="Digite solo numeros" ForeColor="Red" Operator="DataTypeCheck" SetFocusOnError="True" Type="Integer">*</asp:CompareValidator>
                                    <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="txt_descuento" ErrorMessage="Digite numeros en intervalo de 0-50" ForeColor="Red" MaximumValue="50" MinimumValue="0" SetFocusOnError="True" Type="Integer">*</asp:RangeValidator>
                                </td>
                                <td>
                                    <asp:Label ID="Label13" runat="server" Text="Impuesto:"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txt_impuesto" runat="server" BackColor="#CCCCCC" Height="22px" ReadOnly="True" Width="71px" AutoPostBack="True"></asp:TextBox>
                                    <asp:CheckBox ID="chk_exonerado" runat="server" AutoPostBack="True" OnCheckedChanged="chk_exonerado_CheckedChanged" Text="Exonerado" Enabled="False" />
                                </td>
                            </tr>
                            <tr>
                                <td class="auto-style32">
                                    <asp:Label ID="Label11" runat="server" Text="Costo:"></asp:Label>
                                </td>
                                <td class="auto-style32">
                                    <asp:TextBox ID="txt_costo" runat="server" Height="22px" MaxLength="10" Width="50px" AutoPostBack="True" OnTextChanged="txt_costo_TextChanged" Enabled="False"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txt_costo" ErrorMessage="Digite el costo" ForeColor="Red" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                                    <asp:CompareValidator ID="CompareValidator3" runat="server" ControlToValidate="txt_costo" ErrorMessage="Digite solo numeros" ForeColor="Red" Operator="DataTypeCheck" SetFocusOnError="True" Type="Double">*</asp:CompareValidator>
                                    <asp:RangeValidator ID="RangeValidator3" runat="server" ControlToValidate="txt_costo" ErrorMessage="Cantidad digitada sobrepasa el maximo permitido" ForeColor="Red" MaximumValue="2147483647" MinimumValue="0" SetFocusOnError="True" Type="Double">*</asp:RangeValidator>
                                </td>
                                <td class="auto-style32">
                                    <asp:Label ID="Label12" runat="server" Text="Precio:"></asp:Label>
                                </td>
                                <td class="auto-style32">
                                    <asp:TextBox ID="txt_precio" runat="server" BackColor="#CCCCCC" Height="22px" ReadOnly="True" Width="71px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" class="auto-style10" colspan="4">
                                    <asp:Button ID="b_limpiar" runat="server" CausesValidation="False" Height="26px" OnClick="b_limpiar_Click" Text="Limpiar" Width="62px" />
                                    <asp:Button ID="b_agregar" runat="server" Enabled="False" OnClick="b_agregar_Click" Text="Agregar" />
                                    <asp:Button ID="b_actualizar" runat="server" Enabled="False" OnClick="b_actualizar_Click" style="margin-bottom: 0px" Text="Actualizar" />
                                    <asp:Button ID="b_guardar" runat="server" Enabled="False" Text="Guardar" OnClick="b_guardar_Click" />
                                    <asp:Button ID="b_borrar" runat="server" Enabled="False" Text="Borrar" OnClick="b_borrar_Click" CausesValidation="False" />
                                </td>
                            </tr>
                        </table>
                        <br />
                    </asp:Panel>
                </td>
                <td class="auto-style30">
                    <asp:Panel ID="Panel3" runat="server" Height="407px" style="margin-left: 0px" Width="139px">
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        &nbsp;
                        <asp:Label ID="Label14" runat="server" Text="SubTotal:"></asp:Label>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="txt_subtotal" runat="server" Height="22px" Width="128px" ReadOnly="True" BackColor="#CCCCCC"></asp:TextBox>
                        <br />
                        &nbsp;<asp:Label ID="Label15" runat="server" Text="Descuento:"></asp:Label>
                        <br />
                        <asp:TextBox ID="txt_totalDescuento" runat="server" Height="22px" Width="128px" ReadOnly="True" BackColor="#CCCCCC"></asp:TextBox>
                        <br />
                        &nbsp;<asp:Label ID="Label16" runat="server" Text="I.V :"></asp:Label>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="txt_impuestoTotal" runat="server" Height="22px" Width="128px" ReadOnly="True" BackColor="#CCCCCC"></asp:TextBox>
                        <br />
                        &nbsp;<asp:Label ID="Label17" runat="server" Text="Total:"></asp:Label>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="txt_total" runat="server" Height="22px" Width="128px" ReadOnly="True" BackColor="#CCCCCC"></asp:TextBox>
                        <br />
                        <br />
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td colspan="2" class="auto-style31">
                    <asp:GridView ID="gv_productos" runat="server" Height="182px" Width="772px" style="margin-left: 0px" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical" Enabled="False" OnRowCommand="gv_productos_RowCommand">
                        <AlternatingRowStyle BackColor="#DCDCDC" />
                        <Columns>
                            <asp:CommandField ShowSelectButton="True" />
                        </Columns>
                        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                        <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                        <SortedAscendingCellStyle BackColor="#F1F1F1" />
                        <SortedAscendingHeaderStyle BackColor="#0000A9" />
                        <SortedDescendingCellStyle BackColor="#CAC9C9" />
                        <SortedDescendingHeaderStyle BackColor="#000065" />
                    </asp:GridView>
                </td>
            </tr>
            </table>
    </div>

        &nbsp;</body></html>
        
    
</asp:Content>
